#!/bin/bash
sudo apt install samba docker.io docker-compose -y;

whoname=`whoami`
sudo mkdir -p /opt/casaos/;


sudo ln -s /opt/casaos/logs  /var/log/casaos;


wget -qO- https://get.casaos.io | sudo bash;


sudo smbpasswd -a ${whoname} << EOF
pi
pi
EOF


sudo cp st*.sh /opt/casaos/;
sudo chmod +x /opt/casaos/*.sh;
sudo chown -R ${whoname} /opt/casaos;